<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"	
	xmlns:p="http://primefaces.org/ui" >
	<h:head>
		<h:outputStylesheet name="reset.css" library="css" />
		<h:outputStylesheet name="estrutura_login.css" library="css" />
		<title>#{msg['sistema']}</title>
	</h:head>
	<h:body>
	<!-- 	<div id="teste_header">Base de Dados para Testes</div> -->
	
		<p:ajaxStatus id="load_login">
		    <f:facet name="start">  
		        <h:graphicImage library="images" name="ajax-loader.gif" alt="carregando" />  
		    </f:facet>
		    <f:facet name="complete">
		    	<h:outputText value="" />
		    </f:facet> 
		</p:ajaxStatus> 

		<div id="container">
	    	<div id="box_login">
				<h:form id="form_login">
				<p:growl id="msgs" showSummary="false" showDetail="true"/>
					<fieldset>
						<h:outputLabel  for="email" value="#{msg['label.name']}" />
						<p:inputText id="email" converter="convertToUpper" label="#{msg['label.email']}" required="true" value="#{loginBean.usua.usualogin}"/>
						<h:outputLabel value="#{msg['label.password']}" />
						<p:password label="#{msg['label.password']}"  required="true" feedback="false" value="#{loginBean.usua.usuasenha}"/>
					</fieldset>
						
					<p:commandButton update="msgs" action="#{loginBean.login}" value="#{msg['login.ok']}"/>
						
					<div id="bt_retornar"> 
						Site Nave
		        	</div>
	        	</h:form>
	   	  	</div>
	   	  	<div id="footer">
	        	<h:graphicImage library="images" name="logo.gif"  alt="Logo" />
	        </div>
	    </div>
	</h:body>
</html>  

